package edu.ucsur.tp.micolectivo.forms;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.Panel;
import javax.swing.JTable;

public class Reservas {

	private JFrame frmReservas;
	private JTextField textField;
	private JTable table;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Reservas window = new Reservas();
					window.frmReservas.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public Reservas() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmReservas = new JFrame();
		frmReservas.setTitle("Reservas");
		frmReservas.setBounds(100, 100, 436, 288);
		frmReservas.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frmReservas.getContentPane().setLayout(null);
		
		JLabel lblBuscarChofer = new JLabel("Buscar Rutas");
		lblBuscarChofer.setBounds(10, 11, 81, 14);
		frmReservas.getContentPane().add(lblBuscarChofer);
		
		textField = new JTextField();
		textField.setBounds(101, 8, 201, 20);
		frmReservas.getContentPane().add(textField);
		textField.setColumns(10);
		
		JButton btnBuscar = new JButton("Buscar");
		btnBuscar.setBounds(312, 7, 89, 23);
		frmReservas.getContentPane().add(btnBuscar);
		
		Panel panel = new Panel();
		panel.setBounds(10, 57, 403, 158);
		frmReservas.getContentPane().add(panel);
		panel.setLayout(null);
		
		table = new JTable();
		table.setBounds(201, 5, 0, 0);
		panel.add(table);
		
		JButton btnReservar = new JButton("Reservar");
		btnReservar.setBounds(324, 221, 89, 23);
		frmReservas.getContentPane().add(btnReservar);
	}
}
